The type was never part of Gio, but it's an Unix specific type, so use
the platform-specific typelib instead.
This would still work in gjs for 49 but would trigger a warning.
See: https://gitlab.gnome.org/GNOME/glib/-/issues/3744
See: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/4761
See: https://gitlab.gnome.org/GNOME/gjs/-/merge_requests/1018
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3855>
(cherry picked from commit
3041605120456166544753396137580a23a055d2)
return this._initialized;
}
- // Calculate whether the given app (a Gio.DesktopAppInfo) should be shown
+ // Calculate whether the given app (a GioUnix.DesktopAppInfo) should be shown
// on the desktop, in search results, etc. The app should be shown if:
// - The .desktop file doesn’t say it should be hidden.
// - The executable from the .desktop file’s Exec line isn’t denied in
import Clutter from 'gi://Clutter';
import Gio from 'gi://Gio';
+import GioUnix from 'gi://GioUnix';
import GLib from 'gi://GLib';
import GObject from 'gi://GObject';
import Meta from 'gi://Meta';
let currentDesktop = GLib.getenv('XDG_CURRENT_DESKTOP');
if (!currentDesktop || !currentDesktop.split(':').includes('GNOME'))
- Gio.DesktopAppInfo.set_desktop_env('GNOME');
+ GioUnix.DesktopAppInfo.set_desktop_env('GNOME');
sessionMode = new SessionMode.SessionMode();
sessionMode.connect('updated', _sessionUpdated);
import GdkPixbuf from 'gi://GdkPixbuf';
import Gio from 'gi://Gio';
+import GioUnix from 'gi://GioUnix';
import GLib from 'gi://GLib';
import Shell from 'gi://Shell';
import St from 'gi://St';
let appInfo = null;
try {
let desktopId = keyfile.get_string(group, 'DesktopId');
- appInfo = Gio.DesktopAppInfo.new(desktopId);
+ appInfo = GioUnix.DesktopAppInfo.new(desktopId);
if (!appInfo.should_show())
return;
} catch {